package com.SmartCare.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Attendance implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 访问者id
     */
    private Long visitorId;
    /**
     * 老人id
     */
    private Long elderId;
    /**
     * 签到时间
     */
    private LocalDateTime checkInTime;
    /**
     *签退时间
     */
    private LocalDateTime checkOutTime;
    /**
     * 签到状态
     */
    private Integer status;
    /**
     * 访问时长
     */
    private Long visitDuration;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}
